const qiniu = require('qiniu')
function getKey() {
    var accessKey = 'd_fr0TKn7vb4ax-r17nRTcy6XIukfgztoh-tGpqN';
    var secretKdy = 'EQ4eA4e4XPZOGepfHoSAHmbknFopokLnlNN8VE7n';
    var mac = new qiniu.auth.digest.Mac(accessKey, secretKdy);
    var options = { 
      scope: 'csc-shop', 
    };
    var putPolicy = new qiniu.rs.PutPolicy(options);
    var uploadToken = putPolicy.uploadToken(mac);

    return {
      token: uploadToken
    };
  }
module.exports = {
    getKey
}